const mongoose = require('./../db')
const Schema = mongoose.Schema

const user = new Schema({
    userid: { type: String},
    username: { type: String},
    nickname: { type: String},
    password: { type: String},
    tel: { type: String},
    email: { type: String},
    avatar: { type: String},
    sex: { type: Number} // 1 男 0女
})

module.exports = mongoose.model('User', user)